#!/bin/bash

len=`wc -l list.txt`
len=${len% *}

for ((i = 1; i <= len; i++)) ; do
  f=`head -n $i list.txt | tail -n 1 `
  f=`echo "$f" | sed "s/ \(.*\)//g"`
  link=`printf "%02d" $i`-${f##*\\}
  src=G:/Bank-of-Problems/$f
  fmt="s/\//\\\\/g"
  echo -n "mklink /D $link "
  echo "$src" | sed $fmt
done
